<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>lazyload插件配合jquery</title>
    </head>
    <body>
        <img class="lazyload" src="img/xihu1.jpg" data-original="img/56x56.png
        " width="1000" height="666">
        <img class="lazyload" src="img/xihu2.jpg" data-original="img/56x56.png" width="1920" height="1263">
        <script src="//cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script src="js/lazyload.js"></script>
        <script>
            // lazyload();//加载class为lazyload的图片
            // let images = document.querySelectorAll(".branwdo");
            // lazyload(images);
            // new lazyload(images);
            $("img.lazyload").lazyload();
        </script>
    </body>
</html>